<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>更新个人信息</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/static/css/bootstrap.min.css}" rel="stylesheet">
<style>
    .button {
        padding:8px;
        color: #428bca;
        text-align: center;
        vertical-align: middle;
        font-weight: 900;
        font-size:125%
    }
    .button{
        background: gold;
        border: none;
        border-radius: 50%;
        width: 200px;
        height: 100px;

    }
</style>
</head>

<body>

<div class="container-fluid">
    <div th:text="${msg}" ></div>
    <div class="row">
        <main role="main" class="col-md-9 col-lg-10 pt-3 px-4">
            <form th:action="@{/rent/user/toMain}" method="post">
                <input type="hidden" name="hostId" th:value="${host.getHostId()}">
                <div class="form-group">
                    <label>房子地址</label>
                    <input class="form-control" name="hostAddress" th:value="${host.getHostAddress()}">
                </div>
                <div class="form-group">
                    <label>房东电话</label>
                    <input  class="form-control" name="hostTel" th:value="${host.getHostTel()}">
                </div>
                <button type="submit" class="btn btn-primary">提交</button>
            </form>
            <hr>
            <hr>
            <button class="button" id="btn" onclick="javaScript:window.location.href='/rent/host/signOutHost';">点击注销房东信息</button>
        </main>
    </div>
</div>
<script type="text/javascript" src="/static/js/jquery-3.2.1.slim.min.js"></script>
<script type="text/javascript" src="/static/js/popper.min.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>

<!-- Icons -->
<script type="text/javascript" src="/static/js/feather.min.js"></script>
<script>

    function click(){

        if (confirm("确定注销？")) {
            window.location.href="/"
        } else {
            window.location.href = "/"
        }

}


</script>

<!-- Graphs -->
<script type="text/javascript" src="/static/js/Chart.min.js"></script>

</body>

</html>